package cn.com.duiba.millionaire.center.biz.remoteservice;

import cn.com.duiba.millionaire.center.api.dto.MillionaireMainMeetingDto;
import cn.com.duiba.millionaire.center.api.remoteservice.RemoteMillionaireMainMeetingService;
import cn.com.duiba.millionaire.center.api.requestParam.MillionaireMainMeetingRequestParam;
import cn.com.duiba.millionaire.center.biz.service.MillionaireMainMeetingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2018/1/20.
 */
@RestController
public class RemoteMillionaireMainMeetingServiceImpl implements RemoteMillionaireMainMeetingService {

    @Autowired
    private MillionaireMainMeetingService millionaireMainMeetingService;

    @Override
    public Integer countMillionaireMainMeetingList(MillionaireMainMeetingRequestParam param) {
        return millionaireMainMeetingService.countMillionaireMainMeetingList(param);
    }

    @Override
    public List<MillionaireMainMeetingDto> getMillionaireMainMeetingList(MillionaireMainMeetingRequestParam param) {
        return millionaireMainMeetingService.getMillionaireMainMeetingList(param);
    }

    @Override
    public MillionaireMainMeetingDto findMillionaireMeetingById(Long id) {
        return millionaireMainMeetingService.findMillionaireMeetingById(id);
    }

    @Override
    public Boolean delete(Long id) {
        return millionaireMainMeetingService.delete(id);
    }

    @Override
    public Boolean saveOrUpdateMillionaireMainMeeting(MillionaireMainMeetingDto dto, List<Long> activityIds) {
        return millionaireMainMeetingService.saveOrUpdateMillionaireMainMeeting(dto, activityIds);
    }
}
